#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.59)
AC_INIT(trident-proj, 0.1, seba.chang@qq.com)
AC_CONFIG_SRCDIR([athena/src/main.cpp])
AC_CONFIG_HEADER([config.h])

# Checks build mode
#CHECKS_BUILD_MODE

# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
# for static libs
AC_PROG_RANLIB
# for dynamic libs
AC_PROG_LIBTOOL

# Checks for libraries.

# Checks for header files.

# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_TYPE_SIZE_T
AC_HEADER_TIME

# Initialize auto make
AM_INIT_AUTOMAKE

# Sets build mode
#SETS_BUILD_MODE

# Config makefiles for libs
AC_CONFIG_FILES([
        libs/Makefile
        libs/src/Makefile
        libs/test/Makefile
        libs/test/log/Makefile
        libs/test/utility/Makefile])

AC_CONFIG_FILES([
	Makefile
	docs/Makefile
	athena/Makefile
	athena/src/Makefile
	gateway_server/Makefile
	gateway_server/src/Makefile])

# Checks for library functions.
AC_CHECK_FUNCS([memset])

# ./configure --enable-debug
AC_ARG_ENABLE(debug, [--enable-debug	turn on debug], CXXFLAGS="$CXXFLAGS -g3 -D_DEBUG=1")

AC_OUTPUT
